#ifndef QPARAMDB_H
#define QPARAMDB_H

#include <QObject>
#include "QtSql/QSqlDatabase"
#include "QSqlError"
#include "QSqlQuery"
#include "QSqlRecord"
#include <QSqlResult>
#include "QSqlQueryModel"
#include "QSqlTableModel"
#include <QDebug>
#include "QMessageBox"

class QParamDB : public QObject
{
    Q_OBJECT
public:
    explicit QParamDB(QObject *parent = 0);
    QString GetValueByName(const QString &name);
    ~QParamDB();
private:
    QSqlDatabase DB;
    QSqlQuery query;
  //
signals:

public slots:
    void InsertNewParam(const QString &name, const QString &value);
    void RemoveParam(const QString &name);
    QString getNames();
};

#endif // QPARAMDB_H
